<!--地图悬浮框-->
<template>
  <div class="tooltip">
    <template v-if="list.filiale">
      <div v-for="item in list.filiale">
        <div class="tooltip-name">{{ item.name }}</div>
        <div class="tooltip-message">离任审计数：<span>{{ item.outgoingAudit }}</span></div>
        <div class="tooltip-message">任中审计数：<span>{{ item.numberOfAudits }}</span></div>
      </div>
    </template>
    <template v-else>
      <div class="tooltip-name">{{ list.name }}</div>
      <div class="tooltip-message">离任审计数：<span>{{ list.outgoingAudit }}</span></div>
      <div class="tooltip-message">任中审计数：<span>{{ list.numberOfAudits }}</span></div>
    </template>
  </div>
</template>
<script setup>
import { defineProps } from "vue";

const props = defineProps({
  list: Object,
});
</script>

<style scoped lang="less">
.tooltip {
  width: auto;
  height: auto;
  background: #05164d;
  color: #cde5ff;
  padding: 8px 12px;
  .tooltip-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .tooltip-message {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 400;
    span{
      font-size: 14px;
      color: #27D6D6;
      font-weight: 700;
    }
  }
}
</style>
